/*
 * @Descripttion: 
 * @version: 
 * @Author: spring
 * @Date: 2022-04-16 22:58:24
 * @LastEditors: spring
 * @LastEditTime: 2022-04-17 00:48:15
 */
import { DECREMENT, INCREMENT } from '../constant'

export const increment = (value:number) => ({ type: INCREMENT, data: value })
export const decrement = (value:number) => ({ type: DECREMENT, data: value })
// export const incrementAsync = (value, time) => {
//   return (dispatch) => {
//     setTimeout(() => {
//       dispatch(increment(value))
//     }, time)
//   }
// }